package ThreadArray;

import java.util.List;

/**
 * Created by wangyg 
 * on 2017/3/24 11:02
 */
public class Test {
	public static void main(String[] args) {
		Long time0 = System.currentTimeMillis();
		List list = ListMaker.make();
		Long time1 = System.currentTimeMillis();
		Thread1 thread1 = new Thread1(list);

		Thread2 thread2 = new Thread2(list);

		ItretorThread it = new ItretorThread(list);

		it.start();
		Long time2 = System.currentTimeMillis();
		thread1.start();
		Long time3 = System.currentTimeMillis();
		thread2.start();
		Long time4 = System.currentTimeMillis();
		System.out.println("时间"+(time1-time0));
		System.out.println("时间"+(time2-time1));
		System.out.println("时间"+(time3-time2));
		System.out.println("时间"+(time4-time3));
	}
}
